<?php

namespace App\Console\Commands;

use App\Caches\RoleAccessCache;
use App\Caches\RoleCache;
use Illuminate\Console\Command;

class CacheReset extends Command
{
    protected $signature = 'cache:reset';

    protected $description = '重置指定缓存';

    public function __construct()
    {
        parent::__construct();
    }

    public function handle()
    {
        // 角色缓存
        RoleCache::reset();
        RoleAccessCache::reset();

        // 套餐缓存
        // Package::reset();
    }
}
